package com.hekang.fragmentdemo;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

/**
 * Created by hekang on 2018/9/9.
 */

public class FragmentValues2 extends Fragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragmnet2, container, false);
        //初始化控件
        TextView textView = view.findViewById(R.id.msg);
        textView.setText(getArguments().getString("msg"));
        return view;
    }
}
